home *** CD-ROM | disk | FTP | other *** search
/ Into That Dark Night / Into That Dark Night.iso / pc / YadVashem / Database / LEXMM.dxr / 00007_lex field behavoir.ls < prev    next >
Encoding:
Text File  |  2003-03-14  |  604 b   |  27 lines

  1. property pCurLine
  2. global gLexList, gCameFrom
  3.  
  4. on mouseWithin me
  5.   set whatLine to the mouseLine
  6.   if (whatLine <> pCurLine) and (whatLine > 0) then
  7.     set whatField to the member of sprite the spriteNum of me
  8.     hilite line whatLine of field whatField
  9.     set pCurLine to whatLine
  10.   end if
  11. end
  12.  
  13. on mouseLeave me
  14.   set the hilite of field the member of sprite the spriteNum of me to 0
  15.   set pCurLine to -1
  16. end
  17.  
  18. on mouseUp me
  19.   set whatLine to the mouseLine
  20.   if whatLine > 0 then
  21.     set theItem to getAt(gLexList, whatLine)
  22.     put theItem
  23.     set gCameFrom to #db
  24.     showDBItem(theItem)
  25.   end if
  26. end
  27.